package goldensoftware.pdv.dao;

import goldensoftware.pdv.dao.iface.UsuarioDao;
import goldensoftware.pdv.dao.impl.UsuarioDaoImpl;

public class DaoFactory
{
	
	private static DaoFactory daoFactory;
	
	//Daos
	private UsuarioDao usuarioDao;
	
	public static DaoFactory getInstance()
	{
		if(daoFactory == null)
			daoFactory = new DaoFactory();
		return daoFactory;
	}
	
	public DaoFactory()
	{
		usuarioDao = new UsuarioDaoImpl();
	}

	public UsuarioDao getUsuarioDao()
	{
		return usuarioDao;
	}

}
